<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板文件管理</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    <script src="myJaveScript.js" type="text/javascript"></script>
</head>
<body>
<div id="total1">
    <div class="top">
        模板文件管理
    </div>
    <div class="main">
        <div>
            <select id="s" class="sel">
                <option selected>模板名称</option>
                <option>模板标题</option>
                <option>链接</option>
            </select>
            <input id="seach" class="inp" type="text" placeholder="请输入模板名称(可以空格隔开)"/>
            <button id="qstnMark" onclick="seach()">Q</button>
            <input id="addTmplFile" type="button" value="新增模板文件" onclick="addTmplFile()" />
        </div>
        <div>
            <table id="table1" cellspacing="0px">
                <tr class="tableTitle" align="center">
                    <td class="col1">模板名称</td>
                    <td id="onlyId" style="display: none"></td>
                    <td class="col2">模板标题</td>
                    <td class="col3">链接</td>
                    <td class="col4">备注</td>
                    <td class="col5">操作</td>
                </tr>
            </table>
            <div id="lowerLbl" align="center">
                <p>共</p>
                <p id="rowsNum">0</p>
                <p>条</p>
                <select id="sel" onclick="pagination()">
                    <option id="opt0" value="10">10条/页</option>
                    <option id="opt1" value="20">20条/页</option>
                    <option id="opt2" value="50">50条/页</option>
                </select>
                &nbsp;
                <button onclick="last()"><</button>
                <button id="pno" style="background-color: #5899ce; color: white">1</button>
                <button onclick="next()">></button>
                &nbsp;
                <p>前往</p>
                <input type="text" id="gopg" onclick="gopage()" />
                <p>页</p>
            </div>
        </div>
    </div>

</div>

<div id="total2">
    <div class="top">
        模板文件管理列表
        <p style="display: inline; color: #999999"> > 模板文件管理 </p>
    </div>
    <div class="main" align="center">
        <table id="table2" cellspacing="18px">
            <tr class="table2Tr">
                <td class="table2Td1" align="right">名称</td>
                <td class="table2Td2"><input id="name" type="text" placeholder="名称" /></td>
                <td class="table2Td1" align="right"><p>*</p>模板唯一标识</td>
                <td class="table2Td2"><input id="id" type="text" placeholder="模板唯一标识" /></td>
            </tr>
            <tr class="table2Tr">
                <td class="table2Td1" align="right"><p>*</p>模板标题</td>
                <td class="table2Td2"><input id="title" type="text" placeholder="模板标题" /></td>
                <td class="table2Td1" align="right">链接地址</td>
                <td class="table2Td2"><input id="address" type="text" placeholder="链接地址" /></td>
            </tr>
            <tr class="table2Tr">
                <td class="table2Td1" align="right">备注</td>
                <td class="table2Td3" colspan="3"><input id="remarks" type="text" placeholder="备注" style="width: 1021px" /></td>
            </tr>
            <tr>
                <td></td>
                <td><input id="submit1" style="height: 35px; width: 80px;" type="button" value="提交" onclick="submit1()" /></td>
                <td><input id="submit2" style="height: 35px; width: 80px; display: none" type="button" value="提交" onclick="submit2()" /></td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
